package org.etherframework.tests.features.wiring.config
{
	import org.etherframework.core.EtherConfig;
	import org.etherframework.mediation.Mediations;
	import org.etherframework.wire.ProcessorFactory;
	import org.etherframework.wire.Wiring;
	import org.etherframework.wire.processors.Inject;
	
	public class ConfigWithMediatioHandler extends EtherConfig
	{
		override public function initializeModules():void
		{
			super.initializeModules();
			
			// Here we have an example of Mediations and Wiring
			// modules initialization.
			Mediations.initialize();
			
			// Wiring is initialized by Inject metadata processor
			// and MediationHandler metadata processor.
			Wiring.initialize(Vector.<ProcessorFactory>([
				new ProcessorFactory(Inject)]));
		}
	}
}